#import <UIKit/UIKit.h>

@protocol AddItemViewControllerDelegate <NSObject>
- (void)didAddNewItem:(NSDictionary *)item;
// 新增编辑完成的代理方法
- (void)didEditItem:(NSDictionary *)item atIndex:(NSInteger)index;
@end

@interface AddItemViewController : UIViewController

@property (nonatomic, weak) id<AddItemViewControllerDelegate> delegate;

// 新增编辑模式相关属性
@property (nonatomic, assign) BOOL isEditMode;
@property (nonatomic, assign) NSInteger editingIndex;
@property (nonatomic, strong) NSDictionary *editingItem;

//// UI 元素属性
//@property (nonatomic, strong) UIScrollView *scrollView;
//@property (nonatomic, strong) UIView *contentView;
//@property (nonatomic, strong) UITextField *titleField;
//@property (nonatomic, strong) UITextView *descTextView;
//@property (nonatomic, strong) UILabel *placeholderLabel;
////@property (nonatomic, strong) UIButton *timeButton;
//@property (nonatomic, strong) UISegmentedControl *typeSegment;
//@property (nonatomic, strong) UISegmentedControl *prioritySegment;
//@property (nonatomic, strong) UIButton *saveButton;
//@property (nonatomic, strong) UIDatePicker *timePicker;
//
//// 时间选择器相关属性
//@property (nonatomic, strong) UIView *timePickerOverlay;
//@property (nonatomic, strong) UIView *timePickerBottomView;
//@property (nonatomic, strong) UIDatePicker *bottomTimePicker;

@end
